Jump to content

Talk:File Control Block

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

PSP

[edit]

Should discuss how DOS sets up default FCB's in the program segment prefix, based on command-line parameters... AnonMoos (talk) 19:00, 8 October 2012 (UTC)[reply]

Huh? As far as i can recall, DOS never offered any assistance to programs in the processing of their command lines, meaning that it was always the program which had to parse filenames and open them (including building the corresponding FCB's, if used). So the only FCB handed down from DOS in the PSP would be (perhaps) the FCB for the program executable itself, regardless of command line contents. Unless you mean I/O redirections? — Preceding unsigned comment added by 79.168.78.24 (talk) 23:11, 24 March 2018 (UTC)[reply]
Sorry, you were actually right: DOS really does try to setup 2 FCB's in the PSP corresponding to the first two words on the command line, which it assumes are filenames. I just found this very old reference that i used a long time ago confirming what you were saying. I never used FCB's myself, and i assume all programmers who had no choice but to use them have passed away already (either due to old age or suicide). Anyway... Going to use that information then and add it to the article. Some of it should more properly go into an article about the PSP which doesn't appear to exist, and i can't create it. — Preceding unsigned comment added by 79.168.78.24 (talk) 12:03, 10 April 2018 (UTC)[reply]